 //
//  MSAIManager.h
//  MagicSword
//
//  Created by Netease on 15/11/27.
//  Copyright © 2015年 Jonear. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MSHeroSprite;
@class MSEnemySprite;
typedef NS_ENUM(NSInteger, MSAIManagerType) {
    MSAIManagerType_Simple,          // 1.最简单，永远不动，在可攻击范围内打一下，打血最少的
    MSAIManagerType_Easy,            // 2.主动移动到最近可攻击的英雄附近 进行攻击，一次移动内不可攻击，则不移动
    MSAIManagerType_Normal,          // 3.主动移动到接近最近英雄，有机会就攻击
    MSAIManagerType_Hard,            // 4.选择最近且最容易或者威胁最大的攻击对象，灵活移动
};

@interface MSAIInfo : NSObject

@property (strong, nonatomic) MSEnemySprite *enemy;
@property (assign, nonatomic) CGPoint curCoord;
@property (assign, nonatomic) CGPoint moveCoord;
@property (strong, nonatomic) MSHeroSprite *attackHero;

@end

@interface MSAIManager : NSObject

//+ (id)shareManager;

+ (MSAIInfo *)AIWithType:(MSAIManagerType)type enmey:(MSEnemySprite *)sprite;

@end
